<%@ page language="java" import="com.alibaba.fastjson.JSONObject" pageEncoding="UTF-8" %>
<%@ page import="weaver.conn.RecordSet" %>
<%@ page import="weaver.general.Util" %>
<%--获取传阅数量--%>
<%
    JSONObject jsonData = new JSONObject();
    RecordSet rs = new RecordSet();
    String resourceids = "";
    String ids = Util.null2String(request.getParameter("ids"));
    try {
        rs.executeQuery("select id from hrmresource where id in ("+ids+") order by dsporder");
        while (rs.next()){
            String id =Util.null2String(rs.getString("id"));
            resourceids +="".equals(resourceids)?id:","+id;
        }
    } catch (Exception e) {
        e.printStackTrace();
    }
    jsonData.put("resourceids", resourceids);
    out.print(jsonData.toJSONString());
%>
